<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<script type="text/javascript">
function guanzhu(){
	
	WeixinJSBridge.invoke('addContact', { webtype: '1', username: 'gh_257db3cf8a43'  },  
	function(d) {
		alert(d)
	// 返回d.err_msg取值，d还有一个属性是err_desc //    add_contact:cancel 用户取消 //  add_contact:fail 关注失败   
	// add_contact:ok 关注成功   // add_contact:added 已经关注   
		WeixinJSBridge.log(d.err_msg);  cb && cb(d.err_msg); });
	}; 
}
</script>
<body>
<a href="javascript:void(0)" onclick="guanzhu()">关注他1</a>
</body>
</html>